package utils

import (
	"time"
)

func CheckYear(stamp int64, year string) bool {
	timeLayout := "2006" //时间模板这里时间只能选择 2006-01-02 15:04:05 哈哈哈哈
	//时间戳转化为日期
	datetime := time.Unix(stamp, 0).Format(timeLayout)
	println(datetime)
	return datetime == year
}
